package com.example.cyclops;

public class PDFOutlineElement {
	private String id;
	private String outlineTitle ;
	private boolean mhasParent; 
	private boolean mhasChild ;
	private boolean isptz;
	private boolean top;
	private String parent;
	private int level;
	private String m_IP;
	private String m_Port;
	private String m_CameraID;
	public String getId() {
		return id;
	}
	public String getIP(){
		return m_IP;
	}
	public String getPort(){
		return m_Port;
	}
	public String getCameraID(){
		return m_CameraID;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getOutlineTitle() {
		return outlineTitle;
	}

	public void setOutlineTitle(String outlineTitle) {
		this.outlineTitle = outlineTitle;
	}

	public boolean isMhasParent() {
		return mhasParent;
	}
	public boolean isPTZ(){
		return isptz;
	}
	public void setMhasParent(boolean mhasParent) {
		this.mhasParent = mhasParent;
	}

	public boolean isMhasChild() {
		return mhasChild;
	}

	public void setMhasChild(boolean mhasChild) {
		this.mhasChild = mhasChild;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
	public void setTop()
	{
		this.top = true;
	}

	public boolean isTop()
	{
		return this.top;
	}
	//private OutlineElement outlineElement;
	private boolean expanded;
	
	public PDFOutlineElement(String id, String outlineTitle,
			boolean mhasParent, boolean mhasChild, String parent, int level,
			boolean expanded,String IP,String Port,String CameraID,
			String ptz) {
		super();
		this.id = id;
		this.outlineTitle = outlineTitle;
		this.mhasParent = mhasParent;
		this.mhasChild = mhasChild;
		this.parent = parent;
		this.level = level;
		this.expanded = expanded;
		this.m_IP = IP;
		this.m_Port = Port;
		this.m_CameraID = CameraID;
		if(ptz!=null){
			this.isptz = ptz.equals("0")?false:true;
		}
		this.top = false;
	}
	
	
	
	
	

}
